﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.util {

    public class DateUtil {

        private static var MILLIS_PER_DAY:int = 86400000;
        private static var MILLIS_PER_HOUR:int = 3600000;
        private static var MILLIS_PER_MINUTE:int = 60000;
        private static var MILLIS_PER_SECOND:int = 1000;

        public static function calculateTimeDifference(_arg1:Number):Object{
            var _local2:int = (_arg1 / MILLIS_PER_DAY);
            var _local3:Number = (_arg1 - (_local2 * MILLIS_PER_DAY));
            var _local4:int = (_local3 / MILLIS_PER_HOUR);
            _local3 = (_local3 - (_local4 * MILLIS_PER_HOUR));
            var _local5:int = (_local3 / MILLIS_PER_MINUTE);
            _local3 = (_local3 - (_local5 * MILLIS_PER_MINUTE));
            var _local6:int = (_local3 / MILLIS_PER_SECOND);
            return ({
                days:_local2,
                hours:_local4,
                minutes:_local5,
                seconds:_local6
            });
        }

    }
}//package Classes.util 
